date = input("请输入今天的日期")
weather = input("请输入今天的天气")
content = input("请输入今日心情或总结")
with open('my_diary.txt','a',encoding='utf-8') as file:
    file.write(f"{date} {weather}\n{content}\n\n")
print("今日日记已追加")